package com.tvpush.manage.core.controller;

import com.tvpush.manage.common.controller.CreateController;
import com.tvpush.manage.common.controller.QueryController;
import com.tvpush.manage.common.controller.UpdateController;
import com.tvpush.manage.core.dto.ally.FindAllyInfoDTO;
import com.tvpush.manage.core.entity.AllyInfo;
import com.tvpush.manage.core.service.AllyInfoService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/api/tvpush/ally")
@Api(tags = {"盟友管理"})
public class AllyInfoController implements QueryController<AllyInfo, FindAllyInfoDTO, AllyInfoService>,
        CreateController<AllyInfo, AllyInfoService>,
        UpdateController<Integer, AllyInfo, AllyInfoService> {

    @Autowired
    private AllyInfoService allyInfoService;

    @Override
    public AllyInfoService getService() {
        return allyInfoService;
    }
}
